"Bazel dependencies"

module(
    name = "rules_apko",
    compatibility_level = 1,
    version = "1.5.11",
)

bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "aspect_bazel_lib", version = "2.19.4")

bazel_dep(name = "rules_pkg", version = "1.1.0", dev_dependency = True)
bazel_dep(name = "rules_oci", version = "2.2.6", dev_dependency = True)
bazel_dep(name = "gazelle", version = "0.44.0", dev_dependency = True, repo_name = "bazel_gazelle")
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.7.1", dev_dependency = True)
bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2", dev_dependency = True)
bazel_dep(name = "stardoc", version = "0.8.0", dev_dependency = True, repo_name = "io_bazel_stardoc")

toolchain = use_extension("//apko:extensions.bzl", "apko")
toolchain.toolchain(apko_version = "v0.30.10")
use_repo(toolchain, "apko_toolchains")

register_toolchains("@apko_toolchains//:all")

# locks
apk = use_extension(
    "//apko:extensions.bzl",
    "apko",
    dev_dependency = True,
)
apk.translate_lock(
    name = "examples_lock",
    lock = "//examples/lock:apko.lock.json",
)
apk.translate_lock(
    name = "examples_wolfi_base",
    lock = "//examples/wolfi-base:apko.lock.json",
)
apk.translate_lock(
    name = "examples_oci",
    lock = "//examples/oci:apko.lock.json",
)
apk.translate_lock(
    name = "examples_multi_arch_and_repo",
    lock = "//examples/multi_arch_and_repo:apko.lock.json",
)
use_repo(apk, "examples_multi_arch_and_repo")
use_repo(apk, "examples_lock")
use_repo(apk, "examples_wolfi_base")
use_repo(apk, "examples_oci")
